package com.yyaccp.appinfo.util;

import java.util.List;

public class Page {
    private int totalCount;//总记录数
    private int pageindex;//当前页
    private int pageSize;//页面大小
    private int totalCountPage;//总页数
    private List datalist;

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
        this.totalCountPage = totalCount % pageSize == 0 ?
                totalCount / pageSize:totalCount / pageSize +1;

    }

    public int getPageindex() {
        return pageindex;
    }

    public void setPageindex(int pageindex) {
        this.pageindex = pageindex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalCountPage() {
        return totalCountPage;
    }

    public void setTotalCountPage(int totalCountPage) {
        this.totalCountPage = totalCountPage;
    }

    public List getDatalist() {
        return datalist;
    }

    public void setDatalist(List datalist) {
        this.datalist = datalist;
    }
}
